package com.glasses.primework;

import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import org.primefaces.model.DualListModel;

@ManagedBean
public class PickListBean {
    private DualListModel<String> cities;
    
    public DualListModel<String> getCities() {
        return cities;
    }
    
    public void setCities(DualListModel<String> cities) {
        this.cities = cities;
    }
    
    public PickListBean() {
        List<String> source = new ArrayList<String>();
        List<String> target = new ArrayList<String>();
        
        source.add("Istanbul");
        source.add("Ankara");
        source.add("Izmir");
        source.add("Antalya");
        source.add("Bursa");
        
        cities = new DualListModel<String>(source, target);
    }
}
